package com.cm.creational.factory.abstractf;

import com.cm.creational.factory.Book;
import com.cm.creational.factory.MiBook;
import com.cm.creational.factory.MiPhone;
import com.cm.creational.factory.Phone;

/**
 * @author cm.g
 * @date 2023/6/12 15:11
 */
public class XiaoMiFactory implements Factory{
    @Override
    public Phone createPhone() {
        return new MiPhone();
    }

    @Override
    public Book createBook() {
        return new MiBook();
    }
}
